package b.i.g;

import android.os.Build.VERSION;
import android.os.Trace;
import android.util.Log;

/* compiled from: TraceCompat */
public final class b {
    public static final /* synthetic */ int a = 0;

    static {
        Class cls = String.class;
        if (VERSION.SDK_INT < 29) {
            try {
                Trace.class.getField("TRACE_TAG_APP").getLong(null);
                Class[] clsArr = new Class[1];
                Class cls2 = Long.TYPE;
                clsArr[0] = cls2;
                Trace.class.getMethod("isTagEnabled", clsArr);
                Class[] clsArr2 = new Class[3];
                clsArr2[0] = cls2;
                clsArr2[1] = cls;
                clsArr2[2] = Integer.TYPE;
                Trace.class.getMethod("asyncTraceBegin", clsArr2);
                Trace.class.getMethod("asyncTraceEnd", new Class[]{cls2, cls, r8});
                Trace.class.getMethod("traceCounter", new Class[]{cls2, cls, r8});
            } catch (Exception e) {
                Log.i("TraceCompat", "Unable to initialize via reflection.", e);
            }
        }
    }
}
